package com.tanhua.manage.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Document(collection = "role_opreation")
public class RoleOpreation implements Serializable {

    private Integer id;//主键自增
    private String role;//管理员姓名
    private String ip; //管理员操作电脑IP
    @JsonIgnore
    private Long creatTime; //管理员操作时间
    private String opreation; //管理员操作
    private String describes;//操作描述
    private Long userId; //被操作用户Id
    @TableField(exist = false)
    private String created;

}